package com.xu.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 友链
 * </p>
 *
 * @author xu
 * @since 2022-07-27
 */
@Getter
@Setter
@TableName("friend")
public class FriendEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 友链ID
     */
    @TableId(value = "friend_id",type = IdType.AUTO)
    private Long friendId;

    /**
     * logo
     */
    @TableField("logo_url")
    private String logoUrl;

    /**
     * 友链名称
     */
    @TableField("friend_name")
    private String friendName;

    /**
     * 友链地址
     */
    @TableField("link_url")
    private String linkUrl;
}
